<div class="top-bar">
    <a href="add-user.html" class="button">ADD NEW</a>
    <h1>Gestion des utilisateur</h1>
    <div class="breadcrumbs"><a href="user.html">Utilsateur</a> / Liste</div>
</div><br />
<div class="select-bar"></div>
<?php if(!empty($infos)): ?>
       <div class="infos"><img alt="ok" src="/backend_images/ok2.png" /> <?php echo $infos; ?></div>
   <?php endif; ?>
<div class="table">
   <img src="../backend_images/bg-th-left.gif" width="8" height="7" alt="" class="left" />
   <img src="../backend_images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
   <table class="listing" cellpadding="0" cellspacing="0">
        <tr>
            <th class="first">Email</th>
            <th >Pseudo</th>
            <th>Credits</th>
            <th>Pays</th>
            <th>Insription</th>
            <th class="last">Actions</th>
        </tr>
        <?php foreach($datalist as $data):  ?>
        <tr>
            <td class="first style1"><a href="user-detail-<?php echo $data->getId() ?>.html" title="voir plus d'informmation sur cet utilisateur"><?php echo $data->getEmail()  ?></a></td>
            <td><?php echo $data->getPseudo()  ?></td>
            <td><?php echo $data->getCredits()  ?></td>
            <td><?php echo $data->getCountryName() ?></td>
            <td><?php echo $data->getRegDate() ?></td>
            <td class="last">
                <a href="user-delete-<?php echo $data->getId() ?>.html" onclick="return(confirm('Êtes-vous sûr?'));"><img src="../backend_images/hr.gif" style="width:16px; height:16px;" alt="Supprimer" /></a>
                <a href="user-edit-<?php echo $data->getId() ?>.html" title="editer cet utilisateur"><img src="../backend_images/edit-icon.gif" style="width:16px; height:16px;" alt="&Eacute;diter" /></a>
                <a href="user-detail-<?php echo $data->getId() ?>.html" title="voir plus d'informmation sur cet utilisateur"><img src="../backend_images/information.png" alt="Plus d'infos" /></a>
            </td>
        </tr>
        <?php endforeach;?>
    </table>
    
    <div class="select">
        <strong><?php if( isset($var) ) echo $var; ?></strong>
    </div>
</div>
